using System;
using System.Collections.Generic;
using System.Text;

namespace StudentManagementApplication.Business
{
    class SubjectDetailService
    {
        private DAO.SubjectDetailDAO subjectDetailDAO = new DAO.SubjectDetailDAO();

        public void InsertSubjectDetail(Entities.SubjectDetail subjectDetail)
        {
            subjectDetailDAO.InsertSubjectDetail(subjectDetail);
        }

        public void UpdateSubjectDetail(Entities.SubjectDetail subjectDetail)
        {
            subjectDetailDAO.UpdateSubjectDetail(subjectDetail);
        }

        public void DeleteSubjectDetail(Entities.SubjectDetail subjectDetail)
        {
            subjectDetailDAO.DeleteSubjectDetail(subjectDetail);
        }

        public List<Entities.SubjectDetail> GetAllSubjectDetails()
        {
            return subjectDetailDAO.GetAllSubjectDetails();
        }

        public List<Entities.SubjectDetail> GetSubjectDetailByClassID(string sClassID)
        {
            return subjectDetailDAO.GetSubjectDetailsByClassID(sClassID);
        }

        public List<Entities.SubjectDetail> GetSubjectDetailByStaffID(string sStaffID)
        {
            return subjectDetailDAO.GetSubjectDetailsByStaffID(sStaffID);
        }

        public Entities.SubjectDetail GetSubjectDetailByClassIDAndSubjectID(string sSubjectID, string sClassID)
        {
            return subjectDetailDAO.GetSubjectDetailByClassIDAndSubjectID(sSubjectID, sClassID);
        }
    }
}
